package com.henry.config;

import org.apache.rocketmq.spring.support.RocketMQMessageConverter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Liu Hanlin
 * @create 2025-11-05 22:38
 */
@Configuration
@ConditionalOnMissingBean({RocketMQMessageConverter.class})
public class CustomerMessageConverterConfiguration {

    CustomerMessageConverterConfiguration() {
    }

    @Bean
    public RocketMQMessageConverter createRocketMQMessageConverter() {
        return new RocketMQMessageConverter();
    }
}
